home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / GNU / FLEX / FLEX~ / Changes next >
Text File  |  1993-02-22  |  14KB  |  370 lines

  1. Changes between 2.3 Patch #8 (21Feb93) and 2.3 Patch #7:
  2.  
  3.     - Fixed bugs in dynamic memory allocation leading to grievous
  4.       fencepost problems when generating large scanners.
  5.     - Fixed bug causing infinite loops on character classes with 8-bit
  6.       characters in them.
  7.     - Fixed bug in matching repetitions with a lower bound of 0.
  8.     - Fixed bug in scanning NUL characters using an "interactive" scanner.
  9.     - Fixed bug in using yymore() at the end of a file.
  10.     - Fixed bug in misrecognizing rules with variable trailing context.
  11.     - Fixed bug compiling flex on Suns using gcc 2.
  12.     - Fixed bug in not recognizing that input files with the character
  13.       ASCII 128 in them require the -8 flag.
  14.     - Fixed bug that could cause an infinite loop writing out
  15.       error messages.
  16.     - Fixed bug in not recognizing old-style lex % declarations if
  17.       followed by a tab instead of a space.
  18.     - Fixed potential crash when flex terminated early (usually due
  19.       to a bad flag) and the -v flag had been given.
  20.     - Added some missing declarations of void functions.
  21.     - Changed to only use '\a' for __STDC__ compilers.
  22.     - Updated mailing addresses.
  23.  
  24.  
  25. Changes between 2.3 Patch #7 (28Mar91) and 2.3 Patch #6:
  26.  
  27.     - Fixed out-of-bounds array access that caused bad tables
  28.       to be produced on machines where the bad reference happened
  29.       to yield a 1.  This caused problems installing or running
  30.       flex on some Suns, in particular.
  31.  
  32.  
  33. Changes between 2.3 Patch #6 (29Aug90) and 2.3 Patch #5:
  34.  
  35.     - Fixed a serious bug in yymore() which basically made it
  36.       completely broken.  Thanks goes to Jean Christophe of
  37.       the Nethack development team for finding the problem
  38.       and passing along the fix.
  39.  
  40.  
  41. Changes between 2.3 Patch #5 (16Aug90) and 2.3 Patch #4:
  42.  
  43.     - An up-to-date version of initscan.c so "make test" will
  44.       work after applying the previous patches
  45.  
  46.  
  47. Changes between 2.3 Patch #4 (14Aug90) and 2.3 Patch #3:
  48.  
  49.     - Fixed bug in hexadecimal escapes which allowed only digits,
  50.       not letters, in escapes
  51.     - Fixed bug in previous "Changes" file!
  52.  
  53.  
  54. Changes between 2.3 Patch #3 (03Aug90) and 2.3 Patch #2:
  55.  
  56.     - Correction to patch #2 for gcc compilation; thanks goes to
  57.       Paul Eggert for catching this.
  58.  
  59.  
  60. Changes between 2.3 Patch #2 (02Aug90) and original 2.3 release:
  61.  
  62.     - Fixed (hopefully) headaches involving declaring malloc()
  63.       and free() for gcc, which defines __STDC__ but (often) doesn't
  64.       come with the standard include files such as <stdlib.h>.
  65.       Reordered #ifdef maze in the scanner skeleton in the hope of
  66.       getting the declarations right for cfront and g++, too.
  67.  
  68.     - Note that this patch supercedes patch #1 for release 2.3,
  69.       which was never announced but was available briefly for
  70.       anonymous ftp.
  71.  
  72.  
  73. Changes between 2.3 (full) release of 28Jun90 and 2.2 (alpha) release:
  74.  
  75.     User-visible:
  76.  
  77.     - A lone <<EOF>> rule (that is, one which is not qualified with
  78.       a list of start conditions) now specifies the EOF action for
  79.       *all* start conditions which haven't already had <<EOF>> actions
  80.       given.  To specify an end-of-file action for just the initial
  81.       state, use <INITIAL><<EOF>>.
  82.  
  83.     - -d debug output is now contigent on the global yy_flex_debug
  84.       being set to a non-zero value, which it is by default.
  85.  
  86.     - A new macro, YY_USER_INIT, is provided for the user to specify
  87.       initialization action to be taken on the first call to the
  88.       scanner.  This action is done before the scanner does its
  89.       own initialization.
  90.  
  91.     - yy_new_buffer() has been added as an alias for yy_create_buffer()
  92.  
  93.     - Comments beginning with '#' and extending to the end of the line
  94.       now work, but have been deprecated (in anticipation of making
  95.       flex recognize #line directives).
  96.  
  97.     - The funky restrictions on when semi-colons could follow the
  98.       YY_NEW_FILE and yyless macros have been removed.  They now
  99.       behave identically to functions.
  100.  
  101.     - A bug in the sample redefinition of YY_INPUT in the documentation
  102.       has been corrected.
  103.  
  104.     - A bug in the sample simple tokener in the documentation has
  105.       been corrected.
  106.  
  107.     - The documentation on the incompatibilities between flex and
  108.       lex has been reordered so that the discussion of yylineno
  109.       and input() come first, as it's anticipated that these will
  110.       be the most common source of headaches.
  111.  
  112.  
  113.     Things which didn't used to be documented but now are:
  114.  
  115.     - flex interprets "^foo|bar" differently from lex.  flex interprets
  116.       it as "match either a 'foo' or a 'bar', providing it comes at the
  117.       beginning of a line", whereas lex interprets it as "match either
  118.       a 'foo' at the beginning of a line, or a 'bar' anywhere".
  119.  
  120.     - flex initializes the global "yyin" on the first call to the
  121.       scanner, while lex initializes it at compile-time.
  122.  
  123.     - yy_switch_to_buffer() can be used in the yywrap() macro/routine.
  124.  
  125.     - flex scanners do not use stdio for their input, and hence when
  126.       writing an interactive scanner one must explictly call fflush()
  127.       after writing out a prompt.
  128.  
  129.     - flex scanner can be made reentrant (after a fashion) by using
  130.       "yyrestart( yyin );".  This is useful for interactive scanners
  131.       which have interrupt handlers that long-jump out of the scanner.
  132.  
  133.     - a defense of why yylineno is not supported is included, along
  134.       with a suggestion on how to convert scanners which rely on it.
  135.  
  136.  
  137.     Other changes:
  138.  
  139.     - Prototypes and proper declarations of void routines have
  140.       been added to the flex source code, courtesy of Kevin B. Kenny.
  141.  
  142.     - Routines dealing with memory allocation now use void* pointers
  143.       instead of char* - see Makefile for porting implications.
  144.  
  145.     - Error-checking is now done when flex closes a file.
  146.  
  147.     - Various lint tweaks were added to reduce the number of gripes.
  148.  
  149.     - Makefile has been further parameterized to aid in porting.
  150.  
  151.     - Support for SCO Unix added.
  152.  
  153.     - Flex now sports the latest & greatest UC copyright notice
  154.       (which is only slightly different from the previous one).
  155.  
  156.     - A note has been added to flexdoc.1 mentioning work in progress
  157.       on modifying flex to generate straight C code rather than a
  158.       table-driven automaton, with an email address of whom to contact
  159.       if you are working along similar lines.
  160.  
  161.  
  162. Changes between 2.2 Patch #3 (30Mar90) and 2.2 Patch #2:
  163.  
  164.     - fixed bug which caused -I scanners to bomb
  165.  
  166.  
  167. Changes between 2.2 Patch #2 (27Mar90) and 2.2 Patch #1:
  168.  
  169.     - fixed bug writing past end of input buffer in yyunput()
  170.     - fixed bug detecting NUL's at the end of a buffer
  171.  
  172.  
  173. Changes between 2.2 Patch #1 (23Mar90) and 2.2 (alpha) release:
  174.  
  175.     - Makefile fixes: definition of MAKE variable for systems
  176.       which don't have it; installation of flexdoc.1 along with
  177.       flex.1; fixed two bugs which could cause "bigtest" to fail.
  178.  
  179.     - flex.skel fix for compiling with g++.
  180.  
  181.     - README and flexdoc.1 no longer list an out-of-date BITNET address
  182.       for contacting me.
  183.  
  184.     - minor typos and formatting changes to flex.1 and flexdoc.1.
  185.  
  186.  
  187. Changes between 2.2 (alpha) release of March '90 and previous release:
  188.  
  189.     User-visible:
  190.  
  191.     - Full user documentation now available.
  192.  
  193.     - Support for 8-bit scanners.
  194.  
  195.     - Scanners now accept NUL's.
  196.  
  197.     - A facility has been added for dealing with multiple
  198.       input buffers.
  199.  
  200.     - Two manual entries now.  One which fully describes flex
  201.       (rather than just its differences from lex), and the
  202.       other for quick(er) reference.
  203.  
  204.     - A number of changes to bring flex closer into compliance
  205.       with the latest POSIX lex draft:
  206.  
  207.         %t support
  208.         flex now accepts multiple input files and concatenates
  209.             them together to form its input
  210.         previous -c (compress) flag renamed -C
  211.         do-nothing -c and -n flags added
  212.         Any indented code or code within %{}'s in section 2 is
  213.             now copied to the output
  214.  
  215.     - yyleng is now a bona fide global integer.
  216.  
  217.     - -d debug information now gives the line number of the
  218.       matched rule instead of which number rule it was from
  219.       the beginning of the file.
  220.  
  221.     - -v output now includes a summary of the flags used to generate
  222.       the scanner.
  223.  
  224.     - unput() and yyrestart() are now globally callable.
  225.  
  226.     - yyrestart() no longer closes the previous value of yyin.
  227.  
  228.     - C++ support; generated scanners can be compiled with C++ compiler.
  229.  
  230.     - Primitive -lfl library added, containing default main()
  231.       which calls yylex().  A number of routines currently living
  232.       in the scanner skeleton will probably migrate to here
  233.       in the future (in particular, yywrap() will probably cease
  234.       to be a macro and instead be a function in the -lfl library).
  235.  
  236.     - Hexadecimal (\x) escape sequences added.
  237.  
  238.     - Support for MS-DOS, VMS, and Turbo-C integrated.
  239.  
  240.     - The %used/%unused operators have been deprecated.  They
  241.       may go away soon.
  242.  
  243.  
  244.     Other changes:
  245.  
  246.     - Makefile enhanced for easier testing and installation.
  247.     - The parser has been tweaked to detect some erroneous
  248.       constructions which previously were missed.
  249.     - Scanner input buffer overflow is now detected.
  250.     - Bugs with missing "const" declarations fixed.
  251.     - Out-of-date Minix/Atari patches provided.
  252.     - Scanners no longer require printf() unless FLEX_DEBUG is being used.
  253.     - A subtle input() bug has been fixed.
  254.     - Line numbers for "continued action" rules (those following
  255.       the special '|' action) are now correct.
  256.     - unput() bug fixed; had been causing problems porting flex to VMS.
  257.     - yymore() handling rewritten to fix bug with interaction
  258.       between yymore() and trailing context.
  259.     - EOF in actions now generates an error message.
  260.     - Bug involving -CFe and generating equivalence classes fixed.
  261.     - Bug which made -CF be treated as -Cf fixed.
  262.     - Support for SysV tmpnam() added.
  263.     - Unused #define's for scanner no longer generated.
  264.     - Error messages which are associated with a particular input
  265.       line are now all identified with their input line in standard
  266.       format.
  267.     - % directives which are valid to lex but not to flex are
  268.       now ignored instead of generating warnings.
  269.     - -DSYS_V flag can now also be specified -DUSG for System V
  270.       compilation.
  271.  
  272.  
  273. Changes between 2.1 beta-test release of June '89 and previous release:
  274.  
  275.     User-visible:
  276.  
  277.     - -p flag generates a performance report to stderr.  The report
  278.       consists of comments regarding features of the scanner rules
  279.       which result in slower scanners.
  280.  
  281.     - -b flag generates backtracking information to lex.backtrack.
  282.       This is a list of scanner states which require backtracking
  283.       and the characters on which they do so.  By adding rules
  284.       one can remove backtracking states.  If all backtracking states
  285.       are eliminated, the generated scanner will run faster.
  286.       Backtracking is not yet documented in the manual entry.
  287.  
  288.     - Variable trailing context now works, i.e., one can have
  289.       rules like "(foo)*/[ \t]*bletch".  Some trailing context
  290.       patterns still cannot be properly matched and generate
  291.       error messages.  These are patterns where the ending of the
  292.       first part of the rule matches the beginning of the second
  293.       part, such as "zx*/xy*", where the 'x*' matches the 'x' at
  294.       the beginning of the trailing context.  Lex won't get these
  295.       patterns right either.
  296.  
  297.     - Faster scanners.
  298.  
  299.     - End-of-file rules.  The special rule "<<EOF>>" indicates
  300.       actions which are to be taken when an end-of-file is
  301.       encountered and yywrap() returns non-zero (i.e., indicates
  302.       no further files to process).  See manual entry for example.
  303.  
  304.     - The -r (reject used) flag is gone.  flex now scans the input
  305.       for occurrences of the string "REJECT" to determine if the
  306.       action is needed.  It tries to be intelligent about this but
  307.       can be fooled.  One can force the presence or absence of
  308.       REJECT by adding a line in the first section of the form
  309.       "%used REJECT" or "%unused REJECT".
  310.  
  311.     - yymore() has been implemented.  Similarly to REJECT, flex
  312.       detects the use of yymore(), which can be overridden using
  313.       "%used" or "%unused".
  314.  
  315.     - Patterns like "x{0,3}" now work (i.e., with lower-limit == 0).
  316.  
  317.     - Removed '\^x' for ctrl-x misfeature.
  318.  
  319.     - Added '\a' and '\v' escape sequences.
  320.  
  321.     - \<digits> now works for octal escape sequences; previously
  322.       \0<digits> was required.
  323.  
  324.     - Better error reporting; line numbers are associated with rules.
  325.  
  326.     - yyleng is a macro; it cannot be accessed outside of the
  327.       scanner source file.
  328.  
  329.     - yytext and yyleng should not be modified within a flex action.
  330.  
  331.     - Generated scanners #define the name FLEX_SCANNER.
  332.  
  333.     - Rules are internally separated by YY_BREAK in lex.yy.c rather
  334.       than break, to allow redefinition.
  335.  
  336.     - The macro YY_USER_ACTION can be redefined to provide an action
  337.       which is always executed prior to the matched rule's action.
  338.     
  339.     - yyrestart() is a new action which can be used to restart
  340.       the scanner after it has seen an end-of-file (a "real" one,
  341.       that is, one for which yywrap() returned non-zero).  It takes
  342.       a FILE* argument indicating a new file to scan and sets
  343.       things up so that a subsequent call to yylex() will start
  344.       scanning that file.
  345.  
  346.     - Internal scanner names all preceded by "yy_"
  347.  
  348.     - lex.yy.c is deleted if errors are encountered during processing.
  349.  
  350.     - Comments may be put in the first section of the input by preceding
  351.       them with '#'.
  352.  
  353.  
  354.  
  355.     Other changes:
  356.  
  357.     - Some portability-related bugs fixed, in particular for machines
  358.       with unsigned characters or sizeof( int* ) != sizeof( int ).
  359.       Also, tweaks for VMS and Microsoft C (MS-DOS), and identifiers all
  360.       trimmed to be 31 or fewer characters.  Shortened file names
  361.       for dinosaur OS's.  Checks for allocating > 64K memory
  362.       on 16 bit'ers.  Amiga tweaks.  Compiles using gcc on a Sun-3.
  363.     - Compressed and fast scanner skeletons merged.
  364.     - Skeleton header files done away with.
  365.     - Generated scanner uses prototypes and "const" for __STDC__.
  366.     - -DSV flag is now -DSYS_V for System V compilation.
  367.     - Removed all references to FTL language.
  368.     - Software now covered by BSD Copyright.
  369.     - flex will replace lex in subsequent BSD releases.
  370.